export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "dialogClickModal": false,
  "searchMenuSpan": 6,
  // viewBtn: true,
  labelWidth: 120,
  "column": [
	  {
      "type": "input",
      "label": "编号",
      "prop": "recordId",
      hide: true,
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "计划编号",
      "prop": "planId",
      hide: true,
      addDisplay: false,
      viewDisplay: false,
      editDisplay: false,
      "span": 12
    },	  {
      "type": "date",
      "label": "巡检日期",
      search: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      "prop": "patrolDate",
      "span": 12
    },	  {
      "type": "input",
      "label": "计划名称",
      "prop": "planName",
      search: true,
      "span": 12
    },	  {
      "type": "select",
      "label": "巡检点",
      "prop": "pointId",
      search: true,
      dicUrl: '/act/patrolpoint/page?size=-1',
      props: {
        label: 'name',
        value: 'pointId',
        res: "data.records"
      },
      "span": 12
    },	  {
      "type": "input",
      "label": "设备编号",
      "prop": "assetId",
      hide: true,
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "设备名称",
      "prop": "assetName",
      search: true,
      "span": 12
    },	  {
      "type": "select",
      "label": "数据上报",
      "prop": "reported",
      dicUrl: '/admin/dict/type/done_status',
      "span": 12
    },	  {
      "type": "select",
      "label": "是否按时",
      dicUrl: '/admin/dict/type/yes_no',
      "prop": "onTime",
      "span": 12
    },	  {
      "type": "input",
      "label": "巡检人名称",
      "prop": "handleRealname",
      "span": 12
    },	  {
      "type": "input",
      "label": "开始时间",
      "prop": "startTime",
      "span": 12
    },	  {
      "type": "input",
      "label": "结束时间",
      "prop": "endTime",
      "span": 12
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      "span": 12
    },	  {
      "type": "input",
      "labelWidth": 0,
      hide: true,
      showColumn: false,
      "prop": "recordItemList",
      fromslot: true,
      "span": 24
    },	  {
      "type": "upload",
      "label": "附件",
      "prop": "attachment",
      accept: [],
      slot: true,
      formslot: true,
      propsHttp: {
        res: 'data',
        name: "original"
      },
      props: {
        label: "original",
        value: "url"
      },
      action: "/act/file/upload",
      listType: 'file',
      hide: true,
      "span": 24
    },	  {
      "type": "textarea",
      "prop": "remark",
      hide: true,
      "label": "备注",
      maxlength: 256,
      "span": 24
    }  ]
}

export const wcnjoption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  emptyBtn: false,
  "dialogClickModal": false,
  "searchMenuSpan": 6,
  labelWidth: 120,
  "column": [
	  {
      "type": "date",
      "label": "巡检日期",
      search: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      "prop": "patrolDate",
      disabled: true,
      "span": 12
    },	  {
      "type": "input",
      "label": "计划名称",
      "prop": "planName",
      disabled: true,
      "span": 12
    },	  {
      "type": "select",
      "label": "巡检点",
      "prop": "pointId",
      disabled: true,
      dicUrl: '/act/patrolpoint/page?size=-1',
      props: {
        label: 'name',
        value: 'pointId',
        res: "data.records"
      },
      "span": 12
    },	  {
      "type": "input",
      "label": "设备名称",
      disabled: true,
      "prop": "assetName",
      "span": 12
    },	  {
      "type": "select",
      "label": "数据上报",
      "prop": "reported",
      disabled: true,
      dicUrl: '/admin/dict/type/done_status',
      "span": 12
    },	  {
      "type": "select",
      "label": "是否按时",
      disabled: true,
      dicUrl: '/admin/dict/type/yes_no',
      "prop": "onTime",
      "span": 12
    },	  {
      "type": "select",
      "label": "巡检人名称",
      disabled: true,
      "prop": "handleRealname",
      "span": 12
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      disabled: true,
      "span": 12
    },	  {
      "type": "input",
      "labelWidth": 0,
      "prop": "recordItemList",
      fromslot: true,
      "span": 24
    },	  {
      "type": "upload",
      "label": "附件",
      "prop": "attachment",
      accept: [],
      slot: true,
      formslot: true,
      propsHttp: {
        res: 'data',
        name: "original"
      },
      props: {
        label: "original",
        value: "url"
      },
      action: "/act/file/upload",
      listType: 'file',
      hide: true,
      "span": 24
    },	  {
      "type": "textarea",
      "prop": "remark",
      "label": "备注",
      maxlength: 256,
      "span": 24
    } ]
}
